/*
 * Simple demo no design, use MVC...
 */

package fatclientnbp;

import edu.chl.chalmers.fatclient.sb.FatClientSBBean;
import edu.chl.chalmers.fatclient.sb.FatClientSBRemote;
import fatclientnbp.MainModel;
import javax.ejb.EJB;

/**
 *
 * @author hajo
 */
public class Main {
    // This is only possible here (Main class)
    @EJB
    private static FatClientSBRemote fatClientSBBean;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        if(fatClientSBBean == null){
            fatClientSBBean = new FatClientSBBean();
        }
          java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MainFrame().setVisible(true);
            }
        });
    }
    
    public static FatClientSBRemote getFatClientSBRemote(){
        return fatClientSBBean;
    } 
}
